/*
 * Powered By [Seven]
 * Since 2016 - 2019
 */

package com.czmh.etc.onlinepubsys.maper;

import org.apache.ibatis.annotations.Mapper;

import com.czmh.etc.common.core.mapper.BaseMapper;
import com.czmh.etc.onlinepubsys.dto.UserInfo;
import com.czmh.etc.onlinepubsys.model.EtcUser;

@Mapper
public interface EtcUserMapper extends BaseMapper<EtcUser, String> {
    /**
     * 根据openid获取用户信息
     * @return
     */
    EtcUser getByOpenId(String openid);
    
    /**
     * 根据unionid获取用户信息
     * @return
     */
    EtcUser getByUnionid(String unionid);

    /**
     * 获取用户信息
     * 
     * @return
     */
    UserInfo getUserInfo(String userid);
}
